
const accountKey = 'userInfo'

export function getAccount() {
  let userInfo = window.sessionStorage.getItem(accountKey)
  let account = ''
  if (typeof userInfo == 'string' && userInfo.length > 1) {
    account = JSON.parse(userInfo).account || ''
  }
  return account
}
